#!/usr/bin/env ruby

# Sample Physiks script

require('PhysiksBase')



world = PhysiksBase::World.new(3, 1.0E-5)
pos1 = PhysiksBase::Vector.new(3, 0.0)
pos2 = PhysiksBase::Vector.new(3, 0.0)
pos2.set(2, 6.3781E6)
vel1 = vel2 = PhysiksBase::Vector.new(3, 0.0)

world.add_object(PhysiksBase::PhysicalObject.new(45.9, 0.0, pos1, vel1))
world.add_object(PhysiksBase::PhysicalObject.new(5.9742E24, 0.0, pos2, vel2))

world.integrate(0.0, 5.0)
